Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Microsoft.​Extensions.​Options.​ValidateOptions<​TOptions, TDep1, TDep2, TDep3, TDep4, TDep5>
Assembly: Microsoft.Extensions.Options
Inheritance: object → ValidateOptions
Implemented Interfaces
Implementation of <see cref="T:Microsoft.Extensions.Options.IValidateOptions`1" />
Properties
public
TDep1
Dependency1
Gets the first dependency.
public
TDep2
Dependency2
Gets the second dependency.
public
TDep3
Dependency3
Gets the third dependency.
public
TDep4
Dependency4
Gets the fourth dependency.
public
TDep5
Dependency5
Gets the fifth dependency.
public
string
FailureMessage
Gets the error to return when validation fails.
public
string
Name
Gets the options name.
public
System.​Func<​TOptions, TDep1, TDep2, TDep3, TDep4, TDep5, bool>
Validation
Gets the validation function.
Methods
public
ValidateOptionsResult
Validate​(string name,
TOptions options)
Validates a specific named options instance (or all when <paramref name="name" /> is null).
Returns The <see cref="T:Microsoft.Extensions.Options.ValidateOptionsResult" /> result.
name
The name of the options instance being validated.
options
The options instance.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object